/**
 * Created by caoyang on 17/3/28.
 */


import React, { Component } from 'react';
import {
    StyleSheet,
    Text,
    View,
} from 'react-native';
import NavigationBar from '../../common/NavigationBar';
import InfoRegist from './InfoRegist';


export default class Profile extends Component {
    render() {
        return (
            <View style={styles.container}>
                <NavigationBar
                    hiddenLeft={true}
                    title={'公司列表'}
                    rightImage={'ios-add-circle-outline'}
                    rightAction={this._pushToCompanyInfo}
                />
            </View>
        );
    }

    _pushToCompanyInfo = () => {
        this.props.navigator.push({
            name: 'InfoRegist',
            component: InfoRegist,
        });

        console.log('push to info');
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: '#F5FCFF',
    },
});
